package com.example.electronicmall.base;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.electronicmall.MainActivity;
import com.example.electronicmall.R;
/*
* 作者：王辉
* 功能：支付成功
* 时间：2022/11/9
* */
public class PaymentActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_payment);
        initview();
    }
    private void initview(){
        TextView money=findViewById(R.id.activity_payment_money);
        TextView lookOrder  =findViewById(R.id.activity_payment_look);
        TextView blackfrist=findViewById(R.id.activity_payment_black);//返回首页

        Intent intent=getIntent();
        money.setText(intent.getExtras().get("money").toString().trim());
        blackfrist.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(PaymentActivity.this, MainActivity.class));
            }
        });
    }
}